<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="box">
	<div class="box-title">
		<h4><?php echo Yii::t('app', 'Search')?></h4>
	</div>
	<div class="box-content">
		<?php $form=$this->beginWidget('CActiveForm', array(
			'action'=>Yii::app()->createUrl($this->route),
			'method'=>'get',
		)); ?>

		<div class="control-group">
			<?php echo $form->label($model,'created_time', array('class'=>'control-label')); ?>
			<div class="controls">
				<?php $this->widget('zii.widgets.jui.CJuiDatePicker',array(
					'model' => $model,
					'attribute'=>'created_time_from',
					'language'=>Yii::app()->language,
					'options'=>array(
						'dateFormat'=>'yy-mm-dd',
						'changeMonth'=> true, 
						'changeYear'=> true,
					),
					'htmlOptions'=>array('placeHolder'=>Yii::t('app', 'From')),
				));
				?>
				<?php $this->widget('zii.widgets.jui.CJuiDatePicker',array(
					'model' => $model,
					'attribute'=>'created_time_to',
					'language'=>Yii::app()->language,
					'options'=>array(
						'dateFormat'=>'yy-mm-dd',
						'changeMonth'=> true, 
						'changeYear'=> true,
					),
					'htmlOptions'=>array('placeHolder'=>Yii::t('app', 'To')),
				));
				?>
			</div>
		</div>

		<div class="control-group">
			<?php echo $form->label($model,'profile_id', array('class'=>'control-label')); ?>
			<div class="controls">
				<?php echo $form->textField($model, 'profile_id'); ?>
			</div>
		</div>
		
		<div class="control-group">
			<div class="controls">
				<button type="submit" class="btn"><?php echo Yii::t('app', 'Search') ?></button>
			</div>
		</div>
		<?php $this->endWidget(); ?>
	</div>
</div>
